import React from "react";
import Item from "../Item/Index";
import css from "./index.module.css";
export default function index(props) {
  const { data } = props;
  return (
    <ul className={css.todoMain}>
      {data.map((item) => {
        return <Item key={item.id} id={item.id} content={item} />;
      })}
    </ul>
  );
}
